Replication Material for "Social Capital, Institutional Rules, and Constitutional Amendment Rates"
William Blake, Joseph Cozza, Dave Armstrong and Amanda Friesen

This file identifies the relevant workflow to run the various analyses in the manuscript and appendix.  The files in the archive are: 

- setup.r: sources in functions needed for the analysis and loads relevant packages.  You will need the following R packages to run all analyses:  brms, countrycode, dplyr, ggplot2, gridExtra, ivreg, multiwayvcov, psych, RColorBrewer, rio, sf, stevemisc, tidyr, urbnmapr.

- aux.r: Run auxiliary analyses that produce Tables A1 and A2. 

- stata_code_table_A3: run auxiliary analysis that produces Table A3.

- crossnational.r: estimate models on cross-national data and make Tables A4 and A5 as well as Figures 1, A4 and A5. 

- crossnational_longitudinal.r: estimate models on cross-national, longitudinal data and make Tables A6 and A7 as well as Figures 2, A6 and A7. 

- us_states.r: estimate models on US state data and make Table A8 and Figures 3 and A8. 

Each .r file will run the intended analysis completely, but before running any of the analyses, the setup.r file should be executed. Each .r and .do file pulls data from the various .dta files, as indicated.  Variables in every .dta file are labeled.


